package cn.legend.travel.admin.authorize.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("sys_user_table")
public class User {
    @TableId(type = IdType.AUTO)
    Long id;
    String username;
    String password;
    Integer state;
    Long roleId;
    Integer loginCount;
    String description;
    /**
     * 数据创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    LocalDateTime gmtCreate;

    /**
     * 数据最后修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    LocalDateTime gmtModified;
}
